﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace bugTrackingApp.Models
{
    public  abstract class WorkItem
    {
        public string Title { get; set; }
        public DateTime DateCreated { get; set; }

        public Priority Priority { get; private set; }
        public WorkItem(Priority type)
        {
            this.Priority = type;
        }
    }

    public class Bug : WorkItem
    {
        public string StepsToReproduce { get; set; }
        public Bug() :base(Priority.Medium)
        {
            
        }
    }

    public class Task : WorkItem
    {
        public string Description { get; set; }

        public Task() :base(Priority.Low)
        {

        }
    }
    public class IndexViewModel
    {
        public List<WorkItem> BugList { get; set; }
    }

    public enum Priority 
    {
       High,
       Medium,
       Low
    }
}